/* 首页 */

/* 1.页面头部 */
header {
  color: white;
  background: darkcyan;
}

/* 1.1 顶部导航栏 */
.top-nav {
  display: flex;
  align-items: center;
  height: 3rem;
  font-size: 1.2rem;
}

.top-nav .push-right {
  margin-left: auto;
}

.top-nav a {
  color: #a5a4a4;
}

/* 使用伪元素实现顶部链接中间的竖线 */
.top-nav a:not(:last-of-type)::after {
  content: "|";
  display: inline-block;
  margin: 0 1rem;
}

/* 1.2 首页Logo */
div.logo {
  height: 10rem;
  background: darkcyan url(../images/head.jpg) no-repeat center center;
}

h1 {
  height: 10rem;
}

/* 2.导航菜单 */

nav {
  background: #ebebeb;
}

nav a {
  display: block;
  text-align: center;
  height: 4rem;
  line-height: 4rem;
}

/* 2.1 主菜单 */
nav ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

nav li {
  flex: 1;
  position: relative;
}

nav li > a {
  font-size: 1.6rem;
}

nav li:first-of-type > a {
  color: #fff;
  background-color: darkcyan;
}

nav li:hover > a {
  color: #fff;
  background-color: darkcyan;
}

/* 2.2 二级菜单定义 */

/* 默认隐藏并脱离文档流 */
nav ul.sub-menu {
  display: none;
  position: absolute;
}

nav li:hover ul.sub-menu {
  display: flex;
  flex-direction: column;
  background-color: darkcyan;
  align-items: stretch;
  /* width: calc(120vw / 9); */
  width: calc(120rem / 9);
}

nav ul.sub-menu a {
  color: #fff;
  font-size: 1.2rem;
}

nav ul.sub-menu li:hover > a {
  background-color: darkcyan;
}

/* 3页面主体 */
.t header{
  display: flex;
  align-items: center;
  color: darkcyan;
  height: 5rem;
  line-height: 5rem;
  background: transparent;
  border-bottom: 1px dashed #b2b2b2;
  padding-bottom: 1rem;
}

.t h2{
  font-size: 2rem;
  margin-left: 1rem;
}

.t .more{
  margin-left: auto;
}


/* 3.1 轮播图 */
.banner {
  display: flex;
  justify-content: center;
}

/* 轮播图区域的左右遮罩层 */
.banner p {
  flex: 1 1 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  position: relative;
}

/* 利用背景+盒子“窗口”显示不同的背景切片 */
.banner p a.arrow {
  display: block;
  width: 6rem;
  height: 100%;
  position: absolute;
  cursor: pointer;
  top: 0;
  z-index: 9;
  background-color: rbga(0, 0, 0, 0.6);
}

.banner p a.prev {
  background: url(../images/slider-arrow.png) no-repeat -18rem 0;
  right: 0;
}

.banner p a.prev:hover {
  background: url(../images/slider-arrow.png) no-repeat -12rem 0;
}

.banner p a.next {
  background: url(../images/slider-arrow.png) no-repeat -6rem 0;
  left: 0;
}

.banner p a.next:hover {
  background: url(../images/slider-arrow.png) no-repeat 0 0;
}

/* 轮播图区域 固定宽度120rem*/
.banner ul {
  flex: 0 0 120rem;
  display: flex;
  align-items: center;
  justify-content: start;
}

.banner ul > li {
  flex: 0 0 120rem;
}

/* 位移第一个，后面移动采用方式 */
.banner ul > li:first-of-type {
  margin-left: -120rem;
}

.banner figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 40rem;
}

.banner figcaption {
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  height: 4rem;
  line-height: 4rem;
  margin-top: -4rem;
  margin-left: 2rem;
  padding-left: 8rem;
}

/* 3.2 学院新闻 */
.news{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news section{
  display: flex;
  align-items: center;
  height: 30rem;
}

.news a:hover{
  color: #89211b;
}

/* 图片新闻 */
.news article:nth-of-type(1){
  flex: 0 0 55%;
  height: 30rem;
}

.news article:nth-of-type(1) ul{
  display: flex;
}

.news article:nth-of-type(1) li{
  flex: 1 1 50%;
  margin-right: 2.5rem;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
}

.news article:nth-of-type(1) img{
  border-bottom: 0.3rem #ec7c51 solid;
  width: 100%;
}

.news article:nth-of-type(1) li:nth-last-of-type(1) img{
  border-bottom: 0.3rem #efab09 solid;
}

.news article:nth-of-type(1) a{
  display: inline-block;
  height: 2.4rem;
  line-height: 2.4rem;
  padding: 0 1rem;
  font-weight: bold;
}

.news article:nth-of-type(1) p{
  color: #666;
  padding: 0.5rem 1rem 0 1rem;
  height: 4rem;
  line-height: 2rem;
}

.news article:nth-of-type(1) span{
  color: #666;
  padding-left: 1rem;
}


/* 文字新闻 */
.news article:nth-of-type(2){
  flex: 0 0 45%;
}

.news article:nth-of-type(2) ul{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: 30rem;
}

.news article:nth-of-type(2) li{
  width: calc(50% - 1.6rem);
  height: 4.8rem;
  line-height: 2.4rem;
  border-bottom: .1rem solid #e1e1e1;
  padding-bottom: 1.3rem;
  margin-bottom: 1.2rem;;
  margin-left: 1.6rem;
  font-size: 1.4rem;
}

/* 3.3 通知公告&学工动态&链接 */
.mix{
  background: #f7f7f7 url(../images/bg.jpg) no-repeat center top;
  height: 40rem;
}

.mix > div{
  display: flex;
  align-items: center;
  justify-content: start;
}
/* 3.3.1 通知公告 */
.mix section:nth-of-type(1){
  flex: 0 0 54rem;
  margin-right: 5rem;
}

.mix section:nth-of-type(1) ul{
  display: flex;
  flex-direction: column;
}

.mix section:nth-of-type(1) li{
  height: 7rem;
  margin-top: 2rem;
}

/* 局部采用浮动方式实现 */
.mix section:nth-of-type(1) div{
  float: left;
  padding-right: 1rem;
}

.mix  section:nth-of-type(1) span{
  display: block;
  width: 7rem;
  height: 3.5rem;
  line-height: 3.5rem;
  text-align: center;
}

.mix section:nth-of-type(1) span:nth-of-type(1){
  background-color: #89211b;
  color: #fff;
  font-size: 2.4rem;
  font-weight: bold;
}

.mix section:nth-of-type(1) span:nth-of-type(2){
  border: .1rem solid #bcbcbc;
  width: 6.8rem;
  height: 3.3rem;
  line-height: 3.3rem;
  font-size: 1.4rem;
}


/* 3.3.2 学工动态 */
.mix section:nth-of-type(2){
  flex: 0 0 40rem;
  margin-right: 2.5rem;
}

.mix section:nth-of-type(2) li{
  height: 3.3rem;
  line-height: 3.3rem;
  background: url(../images/icon6.png) no-repeat left center;
  padding-left: 2rem;
  font-size: 1.4rem;
}

.mix section:nth-of-type(2) a:hover{
  color: #89211b;
}



/* 3.3.3 链接 */
.mix aside{
  flex: 0 0 18.5rem;
}

.mix aside ul{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 1.5rem;
}

.mix aside a{
  display: inline-block;
  box-sizing: border-box;
  width: 18rem;
  height: 4.8rem;
  line-height: 4.8rem;
  border: .1rem solid #d4d4d4;
  margin-top: .5rem;
  padding-left: 6.5rem;
  font-size: 1.4rem;
}

.mix aside a:hover{
  border: .1rem solid #89211b;
  background-color: #89211b;
  color: #fff;
}

.icon1 {
  background: url(../images/b1.png) no-repeat 2rem center; 
}

.icon1:hover{
  background: url(../images/b01.png) no-repeat 2rem center; 
}

.icon2 {
  background: url(../images/b2.png) no-repeat 2rem center; 
}

.icon2:hover{
  background: url(../images/b02.png) no-repeat 2rem center; 
}

.icon3 {
  background: url(../images/b3.png) no-repeat 2rem center; 
}

.icon3:hover{
  background: url(../images/b03.png) no-repeat 2rem center; 
}

.icon4 {
  background: url(../images/b4.png) no-repeat 2rem center; 
}

.icon4:hover{
  background: url(../images/b04.png) no-repeat 2rem center; 
}

.icon5 {
  background: url(../images/b5.png) no-repeat 2rem center; 
}

.icon5:hover{
  background: url(../images/b05.png) no-repeat 2rem center; 
}

.icon6 {
  background: url(../images/b6.png) no-repeat 2rem center; 
}

.icon6:hover{
  background: url(../images/b06.png) no-repeat 2rem center; 
}

/* 3.4 专题网站 */
.topic{
  overflow: hidden;
}

.topic ul{
  display: flex;
  align-items: center;
  justify-self: start;
}

.topic li{
  flex: 0 0 27rem;
  margin: 2rem;
}

.topic li:first-of-type{
  margin-left: 0;
}

/* 4. 页面底部 */
footer{
  height: 11.7rem;
  background: darkcyan url(../image/footerbg.jpg) no-repeat center center;
  color: #fff;
  font-size: 1.4rem;
  padding-top: 1rem;
}

address{
  font-style: normal;
  line-height: 3;
}